<?php 

$data = $_POST;

$data['create_time'] = time();
var_dump($data);
$id = $_GET['id'];

$db = include './db.php';

$db[$id]=$data;
/*array_splice($db, $id,0,$data);*/
//var_dump($db);

$str = var_export($db,true);

$str = "<?php return ".$str." ?>";

file_put_contents('./db.php', $str);

header('location:./index.php');












?>